﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="PageBar.ascx.cs" Inherits="FisheryPlatform.Web.Admin.Modules.PageBar" %>
<% if (PbModel.PageCount > 1)
   {%>
<table class="bgfyl">
    <tr>
        <td>
            <% 
                //pb.IsForAjax = true;
                //pb.AjaxPageClickCallback = "alert('{index}-{size}-{count}')";
            %>
            <%= PbModel.RenderRecordCountHtml("共&nbsp;<font color=\"red\"><b>{0}</b></font>&nbsp;条记录&nbsp;<strong>")%>
            <span>
                <%= PbModel.RenderPageInfoHtml("<font color=\"red\">{0}</font>/{1} </strong>页")%></span>
            <%= PbModel.RenderFirstPageHtml("<a href='{href}' {ajaxOnClickCallback} {disabled}>第一页</a>")%>
            &nbsp;
            <%= PbModel.RenderPreviousPageHtml("<a href='{href}' {ajaxOnClickCallback} {disabled}>上一页</a>")%>
            &nbsp;
            <%= PbModel.RenderContentPageHtml("<a href=\"{href}\" {ajaxOnClickCallback}>{text}</a>&nbsp;", "<font color=\"red\"><b>{text}</b></font>&nbsp;")%>
            &nbsp;
            <%= PbModel.RenderNextPageHtml("<a href='{href}' {ajaxOnClickCallback} {disabled}>下一页</a>")%>
            &nbsp;
            <%= PbModel.RenderLastPageHtml("<a href='{href}' {ajaxOnClickCallback} {disabled}>最后一页</a>")%>
        </td>
    </tr>
</table>
<%} %>